package com.hmdp.utils;

/**
 * @author Ccoo
 * 2023/12/7
 */
public interface ILock {

	/**
	 * 获取锁
	 * @param timeoutSec
	 * @return
	 */
	boolean tryLock(long timeoutSec);

	/**
	 * 释放锁
	 */
	void unlock();
}
